 import vueRouter from "vue-router";
 import Header from "./components/HEADER.vue";
 import UPLOAD from "./components/UPLOAD.vue";
 import SHOPCAR from "./components/SHOPCAR.vue";
 import SEARCH from "./components/SEARCH.vue";
 import NewList from "./components/newInfoList/newList.vue";
 import NewInfo from "./components/newInfoList/news_info.vue";
 import ImgList from "./components/imagelist/imglist.vue";
 import ImgInfo from "./components/imagelist/imginfo.vue";
 import NewInfo_Upload from "./components/submit_upload/newinfo_upload.vue";
 import News_Upload from "./components/submit_upload/quilleditor.vue";
 import GoodsInfo_Upload from "./components/submit_upload/goodsinfo_upload.vue";
 import ImageInfo_Upload from "./components/submit_upload/imageinfo_upload.vue";
 import imgshow from "./components/mycomponents/imgshow.vue"
 import imgupload from "./components/submit_upload/imgupload.vue";
 import CommentInfo_Upload from "./components/submit_upload/commentinfo_upload.vue";
 
 var router = new vueRouter({
     routes:[
         {path:"/",redirect:"/HEADER"},
         {path:"/HEADER",component:Header},
         {path:"/HEADER/NEWLIST",component:NewList},
         {path:"/HEADER/NEWLIST/:id",component:NewInfo},
         {path:"/HEADER/SHAREIMG",component:ImgList},
         {path:"/HEADER/IMGINFO/:id",component:ImgInfo},
         {  path:"/UPLOAD",
            component:UPLOAD,
            children:[
                {path:"",redirect:"NewInfo_Upload"},
                {path:"NewInfo_Upload",component:News_Upload},
                {path:"GoodsInfo_Upload",component:GoodsInfo_Upload},
                {path:"ImageInfo_Upload",component:imgupload},
                {path:"CommentInfo_Upload",component:CommentInfo_Upload}
            ],

        },
         {path:"/SHOPCAR",component:imgshow},
         {path:"/SEARCH",component:SEARCH},
     ],
     linkActiveClass:'mui-active'
 })

 export default  router;